package com.zrwl.poscloud.xo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zrwl.poscloud.base.entity.MessageSms;
import com.zrwl.poscloud.base.enums.EMessageModelType;
import com.zrwl.poscloud.base.superI.SuperService;
import com.zrwl.poscloud.xo.vo.AdminVO;
import com.zrwl.poscloud.xo.vo.MessageSmsVO;

import java.util.List;
/**
 * 短信 服务类
 *
 * @author 刘思童 AutoGenerate
 * @date 2022-09-08
 */
public interface MessageSmsService extends SuperService<MessageSms> {

    public IPage<MessageSmsVO> getPageList(MessageSmsVO messageSmsVO);
    public List<MessageSms> getAllList(MessageSmsVO messageSmsVO);
    public String add(MessageSmsVO messageSmsVO);
    public String add(MessageSmsVO messageSmsVO, EMessageModelType eMessageModelType);
    public String edit(MessageSmsVO messageSmsVO);
    public String delete(MessageSmsVO messageSmsVO);

    String sendMessage(MessageSmsVO messageSmsVO);
    public void sendMessage(List<AdminVO> adminVOS, MessageSmsVO messageSmsVO);

    String addSend(MessageSmsVO messageSmsVO);

    String resendMessage(MessageSmsVO messageSmsVO);

    public int getCurrentSMS(String mobileCode);

    MessageSms verificationCode(String userTelephone, String validCode);
    /**
     * 获取未发送的短信验证码
     * @return
     */
    public List<MessageSmsVO> getUnsentSMSVerifyCode();
}
